<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>${title}</title>
    <!--<script type="text/javascript" src="static/js/jquery.min.js"></script>-->
    <script type="text/javascript" src="static/js/jquery-3.5.1.min.js"></script>
    <script type="text/javascript" src="static/js/jquery.md5.js"></script>
    <link rel="stylesheet" type="text/css"	href="static/js/themes/defalut.css">
    <link rel="stylesheet" type="text/css"	href="static/js/themes/public.css">
    <link rel="stylesheet" type="text/css"	href="static/js/themes/ddspstyle.css">
    <link rel="stylesheet" type="text/css"	href="static/js/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"	href="static/js/themes/icon.css">
    <link rel="stylesheet" type="text/css"	href="static/js/WdatePicker/skin/WdatePicker.css">

    <script type="text/javascript" src="static/js/jquery.easyui.min.js"></script>
    <script type="text/javascript"	src="static/js/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/js/index.js"></script>
    <style type="text/css">
        html,body,div,span,iframe,h1,h2,h3,h4,h5,h6,p,img,strong,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;}
        body{font:12px/20px tahoma, arial, "宋体"; color:#333;}
        h1,h2,h3,h4,h5,h6{font-size:100%; font-weight:normal;}
        img{border:0; -ms-interpolation-mode:bicubic; vertical-align:top;}
        li{list-style:none;}
        input,button,select,textarea{outline:none}
        textarea{resize:none}
        input,textarea{font-size:12px; vertical-align:middle;}
        q:before,q:after{content:'\0020';}
        hr{border:0; border-bottom:1px dashed #ccc; height:1px; margin:10px 0 9px 0; *margin:3px 0 2px 0;}
        a{color:#333;text-decoration:none;}
        a:hover{color:#f45f01;text-decoration:none;}
        .layout{width:950px; margin:0 auto; height:auto; overflow:hidden;}
        .blue,.blue:hover,.blue a,.blue a:hover{color:#0877e0;}
        .tcenter{text-align:center;}
        .mt10{margin-top:10px;}
        .gray,.gray a,.gray a:hover{color:#999;}
        .longin-height{ height:auto; overflow:hidden; border-bottom: 1px solid #ddd;}
        .login-header{height: 50px;padding: 25px 0;}
        .login-logo{float: left;}
        .login-name{font: 24px/1.8 "微软雅黑" , "宋体" , "sans-serif";color: #666;float: left;margin-top: 15px;margin-left: 20px;}
        .login-link{float: right;margin-top: 25px;}
        .login-link a{color: #666;margin: 0 5px;}
        .login-banner{height: 510px;background: url(static/images/login_bg.png) no-repeat bottom center #EA6100;}
        .pop-loginbox{width: 1000px;height: 510px;margin: 0 auto;position: relative;border-bottom: 1px solid #ddd;}
        .pop-login{width: 285px;height: 350px;position: absolute;right: 0;top: 90px;background:#fff;padding: 20px 0 0 35px;}
        .pop-login h2{font-size: 20px;font-weight: bold;color: #666;height: 30px;}
        .pop-login .form-error{padding: 2px 8px;width: 220px;border: 1px solid #e1c921;background: #FFF9D7;color: #f00;}
        .pop-login .form-error1{padding: 2px 8px;width: 220px;border: 1px solid #e1c921;background: #FFF9D7;color: #f00;}
        .pop-login li{height: auto;overflow: hidden;margin-bottom: 15px;line-height: 38px;zoom: 1;}
        .pop-login .text-box{float: left;width: 250px;height: 36px;border: 1px solid #9AB2CA;background: url(static/images/text_input_bg.png) repeat-x;margin-right: 10px;}
        .pop-login .msg-box{float: left;width: 170px;height: 36px;border: 1px solid #9AB2CA;background: url(static/images/text_input_bg.png) repeat-x;margin-right: 10px;}
        .login-icon1, .login-icon2, .login-icon3{float: left;display: block;width: 22px;height: 36px;background: url(static/images/login_icon.gif) no-repeat;margin: 0 5px;}
        .login-icon2{background-position: 0 -36px;}
        .login-icon3{background-position: 0 -72px;}
        .pop-login .text{float: left;border: 0;background: transparent;width: 210px;height: 34px;line-height: 34px;color: #999;letter-spacing:1px;}
        .pop-login .msg{float: left;border: 0;background: transparent;width: 134px;height: 34px;line-height: 34px;color: #999;letter-spacing:1px;}
        .pop-login .text-tips{color: #999;margin-bottom: -50px;cursor: text;float: left;width: 210px;}
        .pop-login .black{font-size: 20px;font-family: Arial, Helvetica, sans-serif;font-weight: bold;}
        .login-btn {color: #fff;font-family: "微软雅黑";font-size: 18px;height: 40px;line-height: 40px;background: #fe6432;
            width:100px;cursor:pointer;border:0;text-align: center;background: url(static/images/dlbtn.png) no-repeat;}
        .yzm-btn {color: rgba(255,255,255,0.8);font-family: "微软雅黑";font-size: 16px;height: 38px;line-height: 38px;background: #fe6432;
            width:93px;cursor:pointer;border:0;text-align: center}
        .update-btn {color: #fff;font-family: "微软雅黑";font-size: 18px;height: 40px;line-height: 40px;background: #fe6432;
            width:100px;cursor:pointer;border:0;text-align: center;margin-left: 40px}
        .login_bottom{height: 20px;}
        .yzm-hide{display: none}
        .nav li {margin:0;padding: 0}
        .mt10 .nav{ width: 300px;list-style: none; margin:0 auto;}
        .nav>li{
            border-bottom: none;
            line-height: 40px;
            color: white;
            width: 120px;
            margin-left: 140px;
            text-align: center;
        }
        .nav>li div{height: 40px;line-height: 40px;background: mediumpurple;
           border:0;font-size: 18px;font-weight: bold}

        .sub{list-style: none;
            background-color: #FE6432;
            display: none;
        }
        .sub>li{font-size: 18px;font-weight: bold}
        .sub>li:hover{
            background-color: red;
        }
    </style>
    <script type="text/javascript">
        var yzmSendTime = 60;
        var pwdSendTime = 120;
        var message_switch="0"; //"短信开关：0为关,1为开"
        var phone="";
        var userPhone="";
        var upfLag=false; //修改短信验证码是否发出

        $(document).ready(
            function () {
                $("#refreshYzm,#img_yzm").click(function () {
                    $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                    return false;
                });
                $("#btnLogin").click(
                    function () {
                        if ($.trim($("#txt_LoginName").val()).length == 0 || $.trim($("#txt_LoginName").val()) == "用户名") {
                            $(".form-error").html("请输入用户名").show();
                            $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                            $("#txt_LoginName").focus();
                            return false;
                        } else if ($("#txt_pwd").val().length < 6) {
                            $(".form-error").html("请输入正确的密码").show();
                            $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                            $("#txt_pwd").focus();
                            return false;
                        } else if ($("#txt_yzm").val().length < 4) {
                            $(".form-error").html("请输入正确的图形验证码").show();
                            $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                            $("#txt_yzm").focus();
                            return false;
                        }
                        $(".form-error").hide();
                        $("#f_pu_pwd").val($.md5($("#txt_pwd").val()));
                        $("#txt_pwd").val("");
                        //未开启短信
                        if (message_switch == "0") {
                            setTimeout(function () {
                                $("#btnLogin").parent().html("<img style='margin-top:12px; _margin-top:0;' src=\"static/images/subload.gif\" />正在登录...")
                            }, 1);
                            $('#form1').submit();
                        } else {
                            if ($.trim($("#msg_yzm").val()).length == 0 || $.trim($("#msg_yzm").val()) == "短信验证码") {
                                $(".form-error").html("短信验证码为空").show();
                                $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                                $("#txt_LoginName").focus();
                                return false;
                            }
                            tOF();
                        }
                        //$('#Login').submit();
                    });
                $("#updatePwd").click(
                    function () {
                        openDialog($('#dlg'),'nav_list.jsp?pwd_set_times='+pwd_set_times);
                        //$('#pop-pwd').show();
                    }
                );

                $("#send").click(
                    function () {
                        if ($.trim($("#userName").val()).length == 0 || $.trim($("#userName").val()) == "请输入用户名") {
                            $(".form-error1").html("请输入用户名").show();
                            $("#userName").focus();
                            return false;
                        }else if ($("#update_yzm").val().length < 4) {
                            $(".form-error1").html("请输入正确的验证码").show();
                            $("#update_yzm").focus();
                            return false;
                        }else if (!checkMobile(document.getElementById("userPhone").value)) {
                            $(".form-error1").html("请输入正确的手机号").show();
                            $("#userPhone").focus();
                            return false;
                        }else if (userPhone==""||(document.getElementById("userPhone").value!=userPhone)) {
                            $(".form-error1").html("请获取验证码和确认手机号").show();
                            $("#userPhone").focus();
                            return false;
                        }
                        var yzm = document.getElementById("update_yzm").value;
                        $.ajax({
                            url: "wchatHotel/wx_phone_yzm.do",
                            data: {
                                phone: userPhone,
                                yzm: yzm,
                                orderId:orderId2,
                                smsType:2,
                                login_type:"1"
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (json) {
                                if (json.code == "1000") {
                                    $.ajax({
                                        url : "wchat/sendPwdMessage.do",
                                        data : {
                                            name: $('#userName').val(),
                                            smsType: 3
                                        },
                                        dataType : 'json',
                                        type : 'post',
                                        success : function(json){
                                            if(json.result){
                                                $(".form-error1").html(json.result).show();
                                            }else if(json.resCode=="P00000"){
                                                $(".form-error1").html("已发送");
                                                $('#pop-pwd').hide();
                                                upfLag=true;
                                                $('#userName').val("");
                                                $('#userPhone').val("");
                                                $('#dx_yzm').val("");
                                                window.alert("短信已发送,请与管理员联系！");
                                                //修改密码
                                                $.ajax({
                                                    url: "pms/updateUserPwd.do",
                                                    data: {
                                                        f_pu_name: $('#userName').val(),
                                                        f_pu_phone: userPhone,
                                                        orderId: json.liuliuOrderId,
                                                        smsType: 3
                                                    },
                                                    dataType: 'json',
                                                    type: 'post',
                                                    success: function (json) {

                                                    }
                                                });

                                            }else{
                                                $(".form-error1").html("发送失败").show();
                                            }
                                        }
                                    });
                                } else {
                                    $(".form-error1").html("验证码错误").show();
                                }
                            }
                        });
                    }
                );

                //短信验证的开关
                $.ajax({
                    url: "system/select_systemByKey.do",
                    data: {
                        f_sc_keys: "message_switch,pwd_date,pwd_set_times"
                    },
                    dataType: 'json',
                    type: 'post',
                    success: function (map) {
                        message_switch=map.message_switch;
                        $('#message_switch').val(""+message_switch);
                        if(message_switch=="1"){
                            $(".yzm-hide").removeClass("yzm-hide");
                            document.getElementById("setting").style.display="block";
                        }
                        pwd_set_times=map.pwd_set_times;
                    }
                });

                $(".nav>li").mouseenter(function () {
                    var $sub=$(this).children(".sub");
                    $sub.stop();
                    $sub.slideDown(1000);
                });
                $(".nav>li").mouseleave(function () {
                    var $sub=$(this).children(".sub");
                    $sub.stop();
                    $sub.slideUp(1000);
                });

                if ($("#txt_LoginName").val() != "用户名") {
                    $("#txt_LoginName").removeClass();
                    $("#txt_LoginName").addClass("text black");
                }

                if ($("#txt_pwd").val().length > 0) {
                    $(".text-tips").hide();
                }

                if ($('#msg_yzm').val() != "短信验证码") {
                    $('#msg_yzm').removeClass();
                    $('#msg_yzm').addClass("text black");
                }

                $("#txt_LoginName").keyup(
                    function () {
                        if ($.trim($("#txt_pwd").val()).length > 0) {
                            $(".text-tips").hide();
                        }
                    }
                );

                $("#txt_pwd").keyup(
                    function () {
                        if ($.trim($("#txt_pwd").val()).length > 0) {
                            $(".text-tips").hide();
                        } else {
                            $(".text-tips").show();
                        }
                    }
                );

                $("#msg_yzm").keyup(
                    function () {
                        if ($.trim($("#txt_pwd").val()).length > 0) {
                            $(".text-tips").hide();
                        }
                    }
                );

                $("#txt_LoginName").focus(
                    function () {
                        if ($(this).val() == "用户名") {
                            $(this).val("");
                            $(this).removeClass();
                            $(this).addClass("text black");
                        }
                    }
                );

                $("#txt_LoginName").blur(
                    function () {
                        if ($(this).val() == "") {
                            $(this).val("用户名");
                            $(this).removeClass();
                            $(this).addClass("text");
                        }
                    }
                );

                $("#txt_pwd").focus(
                    function () {
                        if ($(this).val() != "") {
                            $(".text-tips").hide();
                        }
                    }
                );

                $("#txt_pwd").blur(
                    function () {
                        if ($(this).val() == "") {
                            $(".text-tips").show();
                        }
                    }
                );

                $("#msg_yzm").focus(
                    function () {
                        if ($(this).val() == "短信验证码") {
                            $(this).val("");
                            $(this).removeClass();
                            $(this).addClass("msg black");
                        }
                    }
                );

                $("#msg_yzm").blur(
                    function () {
                        if ($(this).val() == "") {
                            $(this).val("短信验证码");
                            $(this).removeClass();
                            $(this).addClass("msg");
                        }
                    }
                );

                $("#userName").focus(
                    function () {
                        if ($(this).val() == "请输入用户名") {
                            $(this).val("");
                            $(this).removeClass();
                            $(this).addClass("text black");
                        }
                    }
                );

                $("#userName").blur(
                    function () {
                        if ($(this).val() == "") {
                            $(this).val("请输入用户名");
                            $(this).removeClass();
                            $(this).addClass("text");
                        }
                    }
                );

                $("#userPhone").focus(
                    function () {
                        if ($(this).val() == "请输入手机号") {
                            $(this).val("");
                            $(this).removeClass();
                            $(this).addClass("text black");
                        }
                    }
                );

                $("#userPhone").blur(
                    function () {
                        if ($(this).val() == "") {
                            $(this).val("请输入手机号");
                            $(this).removeClass();
                            $(this).addClass("text");
                        }
                    }
                );

                if($(".form-error").html() != "") {
                    $(".form-error").show();
                }
                if($(".form-error1").html() != "") {
                    $(".form-error1").show();
                }

                if(top.location != self.location){
                    top.location=self.location;
                }
            }
        );
        //短信验证
        function tOF(){
            var yzm = document.getElementById("msg_yzm").value;
            $.ajax({
                url: "pms/findPhoneByName.do",
                data: {
                    f_pu_name: $('#txt_LoginName').val(),
                },
                dataType: 'json',
                type: 'post',
                success: function (json) {
                    if (json.success==="false") {
                        //查询出错
                        $(".form-error").html("请绑定手机号").show();
                    } else {
                        phone = json.phone;
                        if (phone == null || phone == "") {
                            $(".form-error").html("请绑定手机号").show();
                        }else if(phone=="18888888888"){
                            //特殊情况，后台配置该手机号，跳过短信验证
                            $('#form1').submit();
                        }else if (checkMobile(phone)) {
                            //查询订单号
                            $.ajax({
                                url: "wchat/smsInfo.do",
                                data: {
                                    phone: phone,
                                    smsType: 1,
                                    login_type:"1"
                                },
                                dataType: 'json',
                                type: 'post',
                                success: function (json) {
                                    if(json.orderId){
                                        $.ajax({
                                            url: "wchatHotel/wx_phone_yzm.do",
                                            data: {
                                                phone: phone,
                                                yzm: yzm,
                                                orderId:json.orderId,
                                                smsType:1,
                                                login_type:"1"
                                            },
                                            dataType: 'json',
                                            type: 'post',
                                            success: function (json) {
                                                if (json.code == "1000") {
                                                    $('#form1').submit();
                                                } else {
                                                    $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                                                    $("#msg_yzm").focus();
                                                    $(".form-error").html('短信验证码错误');
                                                    $(".form-error").show();
                                                    return false;
                                                }
                                            }
                                        });
                                    }else{
                                        $(".form-error").html('请获取验证码').show();
                                    }
                                },
                                error:function () {
                                    $(".form-error").html('请获取验证码').show();
                                }
                            });
                        } else {
                            $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                            $("#msg_yzm").focus();
                            $(".form-error").html('手机号码输入有误');
                            $(".form-error").show();
                        }
                    }
                }
            });
        }
        //发送验证码
        function sendYzm(){
            if ($.trim($("#txt_LoginName").val()).length == 0 || $.trim($("#txt_LoginName").val()) == "用户名") {
                $(".form-error").html("请输入用户名").show();
                $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                $("#txt_LoginName").focus();
                return false;
            } else if ($("#txt_pwd").val().length < 6) {
                $(".form-error").html("请输入正确的密码").show();
                $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                $("#txt_pwd").focus();
                return false;
            }else if ($("#txt_yzm").val().length < 4) {
                $(".form-error").html("请输入正确的图形验证码").show();
                $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                $("#txt_yzm").focus();
                return false;
            }
            $("#f_pu_pwd").val($.md5($("#txt_pwd").val()));
            //yzmDjs();
            $.ajax({
                url: "login_message.do",
                data: {
                    f_pu_name: $('#txt_LoginName').val(),
                    f_pu_pwd: $("#f_pu_pwd").val(),
                    recode:$("#txt_yzm").val()
                },
                dataType: 'json',
                type: 'post',
                success: function (json) {
                    if(json.status==="success"){
                        var phone=json.msg;
                        if(phone==="18888888888"){

                        }else{
                            $.ajax({
                                url : "wchat/sendLoginMessage.do",
                                data : {
                                    name: $('#txt_LoginName').val(),
                                    phones : phone,
                                    smsType:1,
                                    login_type:"1"
                                },
                                dataType : 'json',
                                type : 'post',
                                success : function(json){
                                    if(json.state){
                                        $(".form-error").html(json.state).show();
                                    }else if(json.resCode=="P00000"){
                                        orderId1=json.liuliuOrderId;
                                        $(".form-error").html("验证码发送成功!").show();
                                        // setTimeout(function () {
                                        // 	document.getElementById('message').innerHTML = "";
                                        // },2000);
                                    }else{
                                        $(".form-error").html("验证码发送失败!").show();
                                    }
                                }
                            });
                        }
                    }else{
                        $("#txt_yzm").val("");
                        $("#img_yzm").attr("src", "kaptcha.jpg?r=" + Math.random());
                        $("#img_yzm").focus();
                        $(".form-error").html(json.msg);
                        $(".form-error").show();
                    }
                }
            });



            /*$.ajax({
                url: "industry/user/user_login_show.do",
                data: {
                    f_pu_name: $('#txt_LoginName').val(),
                    f_pu_pwd: $("#f_pu_pwd").val()
                },
                dataType: 'json',
                type: 'post',
                success: function (json) {
                    if(json.success=="false"){
                        //查询出错
                        $(".form-error").html(json.result).show();
                    }else{
                        phone=json.phone;
                        if(phone==null||phone==""){
                            $(".form-error").html("请绑定手机号").show();
                        }else if(phone=="18888888888"){
                            //特殊情况，后台配置该手机号，跳过短信验证
                        }else if(checkMobile(phone)){
                            //查询成功，发送验证码
                            yzmDjs();
                            $.ajax({
                                url : "wchat/sendLoginMessage.do",
                                data : {
                                    name: $('#txt_LoginName').val(),
                                    phones : phone,
                                    smsType:1,
                                    login_type:"1"
                                },
                                dataType : 'json',
                                type : 'post',
                                success : function(json){
                                    if(json.state){
                                        $(".form-error").html(json.state).show();
                                    }else if(json.resCode=="P00000"){
                                        orderId1=json.liuliuOrderId;
                                        $(".form-error").html("验证码发送成功!").show();
                                        // setTimeout(function () {
                                        // 	document.getElementById('message').innerHTML = "";
                                        // },2000);
                                    }else{
                                        $(".form-error").html("验证码发送失败!").show();
                                    }
                                }
                            });
                        }else{
                            $(".form-error").html("手机号不符合规范").show();
                        }
                    }
                }
            });*/
        }

        function sendYzmTwo(){
            var phone=document.getElementById("userPhone").value;
            if ($.trim($("#userName").val()).length == 0 || $.trim($("#userName").val()) == "请输入用户名") {
                $(".form-error1").html("请输入用户名").show();
                $("#userName").focus();
                return false;
            } else if (phone==""||!checkMobile(phone)) {
                $(".form-error1").html("请输入正确的手机号").show();
                $("#userPhone").focus();
                return false;
            }
            pwdDjs();
            $.ajax({
                url: "pms/findUserByName.do",
                data: {
                    f_pu_name: $('#userName').val(),
                    f_pu_phone: phone
                },
                dataType: 'json',
                type: 'post',
                success: function (json) {
                    if(json){
                        var date = new Date();
                        var year = date.getFullYear();
                        var month=(date.getMonth()+1)>9?(date.getMonth()+1):'0'+(date.getMonth()+1);
                        var day=date.getDate()>9?(date.getDate()):'0'+(date.getDate());
                        var riqi=year+'-'+month+'-'+day;
                        var startTime=riqi+" 00:00:00";
                        var endTime=riqi+" 23:59:59";
                        //查询今日次数
                        $.ajax({
                            url: "wchat/MessageCount.do",
                            data: {
                                startTime:startTime,
                                endTime:endTime,
                                phones:phone,
                                smsType:2
                            },
                            dataType: 'json',
                            type: 'post',
                            success: function (count) {
                                if (parseInt(''+count)<=5) {
                                    $.ajax({
                                        url : "wchat/sendLoginMessage.do",
                                        data : {
                                            name: $('#userName').val(),
                                            phones : phone,
                                            smsType:2,
                                            login_type:"1"
                                        },
                                        dataType : 'json',
                                        type : 'post',
                                        success : function(json){
                                            if(json.state){
                                                $(".form-error1").html(json.state).show();
                                            }else if(json.resCode=="P00000"){
                                                orderId2=json.liuliuOrderId;
                                                console.log("验证码发送成功!")
                                                userPhone=phone;
                                            }else{
                                                $(".form-error1").html("验证码发送失败!").show();
                                            }
                                        }
                                    });
                                }else{
                                    //修改用户状态
                                    $.ajax({
                                        url : "pms/updateUserStatus.do",
                                        data : {
                                            f_pu_name: $('#userName').val(),
                                            f_pu_phone : phone,
                                            f_pu_status:2
                                        },
                                        dataType : 'json',
                                        type : 'post',
                                        success : function(json) {
                                            //console.log(json.success);
                                        }
                                    });
                                    $(".form-error1").html("已超出重置上限，冻结账号!").show();
                                }
                            }
                        });
                    }else{
                        $(".form-error1").html("用户名或密码错误!");
                    }


                }
            });
        }

        function checkMobile(phone){
            if(!(/^((13[0-9])|(14[5,7,9])|(15[0-3,5-9])|(166)|(17[3,5,6,7,8])|(18[0-9])|(19[8,9]))\d{8}$/.test(phone))||phone.length!=11){
                return false;
            } else{
                return true;
            }
        }
        function yzmDjs() {
            yzmSendTime--;
            if(yzmSendTime<=0){
                yzmSendTime = 60;
                $("#btnYzm").val("短信验证码");
            }else{
                $("#btnYzm").val(yzmSendTime+"s");
                setTimeout("yzmDjs()",1000);
            }
        }
        function pwdDjs() {
            pwdSendTime--;
            if(pwdSendTime<=0){
                pwdSendTime = 60;
                $("#dx_yzm").val("短信验证码");
            }else{
                $("#dx_yzm").val(pwdSendTime+"s");
                setTimeout("pwdDjs()",1000);
            }
        }

        function openDialog(dialogObj,url) {
            dialogObj.find("iframe").attr("src",url);
            dialogObj.dialog('open');
        }
        function updatePwd(){
            openDialog($('#dlg'),'update_pwd.jsp?pwd_set_times='+pwd_set_times);
        }
        function bindPhone(){
            openDialog($('#dlg'),'bind_phone.jsp');
        }
        function resetPhone(){
            openDialog($('#dlg'),'reset_phone.jsp?pwd_set_times='+pwd_set_times);
        }

    </script>
</head>

<body style="background-color:#fff;" >
<form method="post" action="login.do" id="form1">

    <div class="longin-height">
        <div class="layout">
            <div class="login-header">
                <div class="login-link"><img src="static/images/right_text.png"/></div>
                <h1 class="login-logo"><img src="static/images/left_text.png"/></h1>

            </div>
        </div>
    </div>
    <div class="login-banner">
        <div class="pop-loginbox">
            <div class="pop-login">
                <h2>用户登录</h2>
                <div class="form-error" style="display: none;">${msg}</div>
                <div class="mt10">
                    <ul>
                        <li>
                            <div class="text-box">
                                <span class="login-icon1"></span>
                                <input id="txt_LoginName" tabindex="1" name="f_pu_name" type="text" value="用户名" class="text" autocomplete="off"/>
                            </div>
                        </li>
                        <li>
                        <li>
                            <div class="text-box">
                                <span class="login-icon2"></span>
                                <label class="text-tips" style="display: block;">登录密码</label>
                                <input id="txt_pwd" name="Pwd" tabindex="2" type="password" class="text black" autocomplete="off"/>
                                <input type="hidden" id="f_pu_pwd" name="f_pu_pwd" value="" />
                            </div>
                        </li>

                        <li>
                            <div class="text-box" style="width: 100px;">
                                <span class="login-icon3"></span>
                                <input id="txt_yzm" name="recode" type="text" tabindex="3" class="text" style="width: 60px;" onblur="if(this.value==&#39;&#39;){value=&#39;验证码&#39;}" onfocus="if(this.value==&#39;验证码&#39;){value=&#39;&#39;}" value="验证码" maxlength="4"/>
                            </div>
                            <img id="img_yzm" src="kaptcha.jpg" width="100" height="38" class="fl" style="cursor: pointer;"/>&nbsp;<a href="javascript:void(0);" id="refreshYzm" class="blue">看不清？</a>
                        </li>
                        <li class="yzm-hide">
                            <div class="msg-box">
                                <span class="login-icon2"></span>
                                <input id="msg_yzm" tabindex="3" name="msg_yzm" type="text" value="短信验证码" class="msg" autocomplete="off"/>
                            </div>
                            <input type="button" name="btnYzm" value="短信验证码" id="btnYzm" class="yzm-btn fl yzm-hide" onclick="sendYzm()"/>
                        </li>

                        <li>
                            <input type="button" name="btnLogin" value="" id="btnLogin" class="login-btn fl"/>

                           <!-- <input type="button" name="updatePwd" value="忘记密码" id="updatePwd" class="update-btn fl yzm-hide"/>-->
                            <ul class="nav" id="setting" style="display: none">
                                <li><div>设置</div>
                                    <ul class="sub" >
                                        <li onclick="updatePwd()">重置密码</li>
                                        <li onclick="bindPhone()">绑定手机号</li>
                                        <li onclick="resetPhone()">重置手机号</li>
                                    </ul>
                                </li>
                            </ul>


                            <input type="hidden" name="message_switch" value="0" id="message_switch" class="yzm-btn fl yzm-hide" />
                        </li>
                    </ul>
                </div>
                <div>
                    <span class="check"></span>
                </div>
            </div>
            <div id="pop-pwd" class="pop-login" style="display: none;left: 0">
                <h2>修改密码</h2>
                <div class="form-error1" style="display: none;">${result}</div>
                <div class="mt10">
                    <ul>
                        <li>
                            <div class="text-box">
                                <span class="login-icon1"></span>
                                <input id="userName" tabindex="1" name="userName" type="text" value="请输入用户名" class="text" autocomplete="off"/>
                            </div>
                        </li>
                        <li>
                            <div class="text-box">
                                <span class="login-icon1"></span>
                                <input id="userPhone" tabindex="1" name="userPhone" type="text" value="请输入手机号" class="text" autocomplete="off"/>
                            </div>
                        </li>
                        <li>
                            <div class="text-box" style="width: 100px;">
                                <span class="login-icon3"></span>
                                <input id="update_yzm" name="update_yzm" type="text" tabindex="3" class="text" style="width: 60px;" onblur="if(this.value==&#39;&#39;){value=&#39;验证码&#39;}" onfocus="if(this.value==&#39;验证码&#39;){value=&#39;&#39;}" value="验证码" />
                            </div>
                            <input type="button" name="dx_yzm" value="短信验证码" id="dx_yzm" class="update-btn fl" onclick="sendYzmTwo()"/>
                        </li>
                        <li>
                            <input type="button" name="send" value="提交" id="send" class="update-btn fl"/>
                        </li>
                    </ul>
                </div>
                <div>
                    <span class="check"></span>
                </div>
            </div>
        </div>
    </div>

    <div class="login_bottom"></div>
    <div class="gray tcenter mt10">请使用360极速模式、Chrome49、Firefox49版本以上版本浏览器访问</div>

    <div id="dlg" class="easyui-dialog"
         style="width: 950px; height: 600px; padding-top: 0px;"
         data-options="title:'修改密码', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
        <iframe scrolling="auto" frameborder="0"
                style="width: 100%; height: 99%;background-color:#fff;"></iframe>
    </div>

</form>
</body>
</html>